package com.qianfeng.smartplatform.pojo;

import org.springframework.util.ObjectUtils;

import java.io.Serializable;

public class UserRoleKey implements Serializable,CheckEmptyInterface {
    private Integer userId;

    private Long roleId;

    private static final long serialVersionUID = 1L;


    @Override
    public boolean isEmpty(CheckType checkType) {
        return ObjectUtils.isEmpty(userId)||userId<0|| ObjectUtils.isEmpty(roleId)||roleId<0;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
}